MessageDialog.ShowModal Method

Displays the MessageDialog window. Returns a MessageDialogButton, which indicates which button was pressed.

Syntax

To find out which button was pressed, compare it to the button instances in the dialog.